<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends Action {
	public function index(){
		//	echo "Hello";
		$m = M('User');
		$arr = $m->select();
		//	$arr = $m->find(2);
		//	$arr = $m->where('id = 2')->getField('username');
		//	$this->assign('data', $arr);
		
		$m->username = "xiaohong";
		$m->sex = 0;
		echo $m->add();
		//	$m->delete(2);
		//	$m->where('id = 3')->delete();
		//	$data['id'] = 1;
		//	$data['username'] = 'success1';
		//	$count = $m->save($data);
		//	var_dump($count);
		$this->display();
	}
}
